﻿<UserControl x:Class="personalplaner.gui.stamm.views.PersonalienView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" BorderThickness="1,0,0,0" Name="this">

    <GroupBox BorderThickness="{Binding BorderThickness, ElementName=this}">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="130"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>

            <TextBlock Text="Name" Grid.Row="0"/>
            <TextBox Grid.Row="0" Grid.Column="1" Text="{FocusBinding Path=Nachname, ValidatesOnDataErrors=True}"/>

            <TextBlock Text="Vorname" Grid.Row="1"/>
            <TextBox Grid.Row="1" Grid.Column="1" Text="{FocusBinding Path=Name, ValidatesOnDataErrors=True}"/>

            <TextBlock Text="Strasse" Grid.Row="2"/>
            <TextBox Grid.Row="2" Grid.Column="1" Text="{FocusBinding Path=Strasse, ValidatesOnDataErrors=True}"/>

            <TextBlock Text="Nr." Grid.Row="3"/>
            <Grid Grid.Row="3" Grid.Column="1" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBox Text="{Binding StrassenNr}"/>
                <TextBlock Text="Postfach" Grid.Column="1" Margin="15,0,10,0"/>
                <TextBox Grid.Column="2" Text="{Binding Postfach}"/>
            </Grid>

            <TextBlock Text="PLZ" Grid.Row="4"/>
            <Grid Grid.Row="4" Grid.Column="1" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBox Text="{FocusBinding Path=PLZ, ValidatesOnDataErrors=True}"/>
                <TextBlock Text="Ort" Grid.Column="1" Margin="15,0,10,0"/>
                <TextBox Grid.Column="2" Text="{FocusBinding Path=Ort, ValidatesOnDataErrors=True}"/>
            </Grid>

            <TextBlock Text="Telephon Privat" Grid.Row="5" />
            <TextBox Grid.Row="5" Grid.Column="1" Text="{Binding TelefonPrivat}"/>

            <TextBlock Text="Natel" Grid.Row="6"/>
            <TextBox Grid.Row="6" Grid.Column="1" Text="{Binding Natel}"/>

            <TextBlock Text="E-Mail" Grid.Row="7"/>
            <TextBox Grid.Row="7" Grid.Column="1" Text="{Binding EMail}"/>

        </Grid>
    </GroupBox>
</UserControl>
